package org.romov.vocab.console;

import java.io.*;

/**
 * Implementation of Console class
 * using for making interactive console user interface
 * @author Peter Romov <romovpa@gmail.com>
 */
public class Console {

	/**
	 * Constructor of object
	 * @param in console input stream
	 * @param out console output stream
	 */
	public Console(InputStream in, PrintStream out) {
		this.in = new BufferedReader(new InputStreamReader(in));
		this.out = new PrintWriter(out);
	}
	
	/**
	 * Prints the string to console
	 * @param str string
	 */
	public void print(String str) {
		out.print(str);
	}
	
	private BufferedReader in;
	private PrintWriter out;
	
}
